package com.yxc.mambalibrary.http;

/**
 * RequestManager
 * Created by robin on 15/12/4.
 *
 * @author yangxc
 */
public class RequestManager {

    public static void get(String tag, HttpType httpType, IRequestParameter parameter, IRequestCallBack callBack){
        switch (httpType){
            case OKHTTP:
                okHttpGet(tag, parameter, callBack);
                break;
            default:
                break;
        }
    }

    private static void okHttpGet(String tag, IRequestParameter parameter, IRequestCallBack callBack){
        IRequest request = RequestFactory.createOkHttpRequest(tag);
        request.doRequest(IRequest.Method.GET, parameter, callBack);
    }

}
